package com.test.service.Impl;

import com.test.mapper.UserMapper;
import com.test.pojo.User;
import com.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 浪客
 * @Date: 2021-08-14 16:51
 * @Description: 用户业务实现类
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired(required = false)
    private UserMapper userMapper;
    @Transactional
    public User Userquery(Long id){
        return userMapper.userquery(id);
    }
}
